package org.idea.qiyu.pay.facade;

import org.apache.dubbo.config.annotation.DubboService;
import org.idea.qiyu.pay.service.IPayService;

/**
 * @Author linhao
 * @Date created in 9:49 上午 2021/11/14
 */
@DubboService
public class PayFacadeImpl implements IPayService {

    @Override
    public boolean sendMoneyToUser(long userId, Integer money) {
        System.out.println("发送金额："+money+"分，给用户："+userId);
        try {
            Thread.sleep(200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return true;
    }
}
